package com.sky.mapper.admin;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.Page;
import com.sky.dto.OrdersConfirmDTO;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.pojo.Courier;
import com.sky.pojo.Orders;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface OrderMapper extends BaseMapper<Orders> {

    @ApiOperation("取消订单")
    void deleteById(Long id);


    Page<Orders> pageOrder(OrdersPageQueryDTO pageQueryDTO);

    Courier receiveOrder(OrdersConfirmDTO confirmDTO);

    Orders selectById(Long id);

    Integer counstOrderStatus(@Param("status") Integer cancelledOrder);
}
